import Vue from 'vue'
import App from './App'
import store from './store'
import uView from 'uview-ui';


// 导入http配置
import httpApi from './api/http.api'
import httpUtil from './api/http.util'

import * as filters from './filter'  // 自定义过滤器

Vue.use(uView);

Vue.config.productionTip = false

App.mpType = 'app'
Vue.prototype.$store = store;
Vue.prototype.$httpApi = httpApi;
Vue.prototype.$http = httpUtil;

Object.keys(filters).forEach(key => {
  Vue.filter(key, filters[key])
})

const app = new Vue({
    ...App
})
app.$mount()
